import { defineStore } from 'pinia'
export const useWsStore = defineStore('ws', {
  state: () => ({ socket: null as WebSocket | null }),
  actions: {
    connect() {
      this.socket = new WebSocket('ws://localhost:8000/ws/tick')
    }
  }
})
